Merge "Un-deprecate ArticleAfterFetchContentObject hook"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Tue, 17 Jan 2017 00:13:15 +0000 (00:13 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Tue, 17 Jan 2017 00:13:15 +0000 (00:13 +0000)
includes/page/Article.php

index a493854..a33c84f 100644 (file)
@@ -391,10 +391,9 @@ class Article implements Page {
                // Avoid PHP 7.1 warning of passing $this by reference
                $articlePage = $this;
 
-               ContentHandler::runLegacyHooks(
+               Hooks::run(
                        'ArticleAfterFetchContentObject',
-                       [ &$articlePage, &$this->mContentObject ],
-                       '1.21'
+                       [ &$articlePage, &$this->mContentObject ]
                );
 
                return $this->mContentObject;